import subprocess

prerepo_url = 'https://gitee.com/chen_program/leetcode.git'
local_path = 'E:/test1'
local_repo = 'E:/git_repo'
subprocess.run(['git', 'clone',local_path])
subprocess.run(['git', 'add',local_path])
subprocess.run(['git', 'branch','master2'])
# subprocess.run(['git', 'checkout','master'])
subprocess.run(['git', 'commit','-m','test1'])
subprocess.run(['git', 'push','--all'])
